#target_include_directories(hello BEFORE PUBLIC ${INCLUDE_DIR})
include_directories(hello ${INCLUDE_DIR})

include_directories(${PROJECT_SOURCE_DIR}/util)

# https://cmake.org/cmake/help/latest/command/link_directories.html
# The command will apply only to targets created after it is called.
# This command is rarely necessary and should be avoided where there are other choices. Prefer to pass full absolute paths to libraries where possible, since this ensures the correct library will always be linked. The find_library() command provides the full path, which can generally be used directly in calls to target_link_libraries().
link_directories(${LIBRARY_DIR})

# To make sure hello can link with rdkafka, and `target_link_libraries`
# can find the hello target, `add_executable` must be here
add_executable(hello main.cc)

target_link_libraries(hello
    util
    rdkafka
)
